<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="laundryPayment.title"/></title>
    <meta name="heading" content="<fmt:message key='laundryPayment.heading'/>"/>
    <meta name="menu" content="RoleAdminLaundry"/>

</head>
<fieldset>
        <legend><fmt:message key="currentLaundry.currentLaundry"/></legend>
        <table>
            <tr><td>
                <table class="tableGrey" id="currentCut" >
                <thead>
                    <tr>
                        <th class="hidden"/>
                        <th><fmt:message key="laundry.name"/></th>
                        <th><fmt:message key="laundry.address"/></th>
                        <th><fmt:message key="amountDebt"/></th>
                        <th><fmt:message key="amountPaid"/></th>
                        <th><fmt:message key="amountXpayment"/></th>
                        <th class="hidden"/>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td><s:property id="laundry.name" value="laundry.name"/></td>
                        <td><s:property id="laundry.address" value="laundry.address"/></td>
                        <td><s:property id="amountDebt" value="amountDebt"/></td>
                        <td><s:property id="amountPaid" value="amountPaid"/></td>
                        <td><s:property id="amountXpayment" value="amountXpayments"/></td>
                    </tr>
                </tbody>
                </table>
            </td>
            <td>
            </td></tr>
        </table>
        <input type="button" style="margin-right: 5px"
           onclick="location.href='<c:url value="/laundrylist.html"/>'"
           value="<fmt:message key="button.done"/>"/>
 </fieldset>

<fieldset>
    <legend><fmt:message key="laundryPeriod.periods"/></legend>
    <br/>
    <input type="button" style="margin-right: 5px"
           onclick="location.href='<c:url value="/asignNewPeriodLaundry.html"/>'"
           value="<fmt:message key="button.add"/>"/>
    <br/>
    <br/>
        <display:table name="periodPaymentLaundryList"  class="table" id="periodPaymentLaundryList" export="true" requestURI="" pagesize="25">
            <display:column sortable="false" titleKey="paymentLaundry.editPaymentLaundry" style="width: 10%"
                    autolink="true" media="html" href="reviewPeriodLaundryPayment.html" paramId="id" paramProperty="id">
                <img src="<c:url value="/images/edit.png" />" alt="Edit" />
            </display:column>
            <display:column property="initAmount" sortable="true" titleKey="periodPaymentLaundry.initAmount"/>
            <display:column property="initDate" sortable="true" titleKey="periodPaymentLaundry.initDate"/>
            <display:column property="endDate" sortable="true" titleKey="periodPaymentLaundry.endDate"/>
            <display:column property="discount" sortable="true" titleKey="periodPaymentLaundry.discount"/>
            <display:column property="closed" sortable="true" titleKey="periodPaymentLaundry.closed"/>
            <display:column sortable="false" titleKey="paymentLaundry.deletePaymentLaundry" style="width: 10%"
                    autolink="true" media="html" href="deletePaymentLaundry.html" paramId="id" paramProperty="id">
                <img src="<c:url value="/images/trash.png" />" alt="Delete" />
            </display:column>

        </display:table>
 </fieldset>